#include "syscall.h"

int CV;
int Lock;

void t1(){
	AcquireLock(Lock);
	WaitCondition(CV,Lock);
	Exit(0);
}

int main()
{	
	int sum=0;
	int i;
	Lock = CreateLock("test5_Lock",10);
	CV = CreateCondition("test5_CV",8);
	Fork(t1);
	Yield();
	Yield();
	for(i=0;i<1000;i++)
	{
		sum++;
	}
	DestroyLock(Lock);
	DestroyCondition(CV);
	Exit(0);
}
